package designpatterns.strategy;

import java.util.ArrayList;

public class MyVector {
	ArrayList<Integer> data = new ArrayList<Integer>();
	
	ISort sorter = null;
	
	public void setSorter(ISort s) {
		sorter = s;
	}
	
	public String printSorted() {
		return sorter.sort(data).toString();
	}
	
	public void addData(Integer i) {
		data.add(i);
	}
	
	public long getLastRunTime() {
		return sorter.getExecTime();
	}
			
}
